package com.globalresources.dao.inface;
import java.util.List;
import com.globalresources.po.Menu;
import com.trg.search.Search;



public interface IMenuDaoHQL{
	/**
	 * query the menu
	*@author aaron.lu(luzhiyuan)
	*@param auth
	*@return
	 */
	public List<Menu> getMenus(String auth);
	

	
	/**
	 * save the menu
	*@author songduanlei@gmail.com
	*@param Object Menu
	*@return null
	 */
	public void saveMenus(Menu menu);
	
	/**
	 * save or Update the menu
	*@author songduanlei@gmail.com
	*@param Object Menu
	*@return null
	 */
	public void saveOrUpdateMenus(Menu menu);
	
	/**
	 * get Menu By Id
	*@author songduanlei@gmail.com
	*@param Object Menu
	*@return null
	 */
	public Menu getMenuById(Integer id);
	/**
	 * List Menu By Group
	 * 
	 * @author songduanlei@gmail.com
	 * @param null
	 * @return Menus
	 */
	public List<Menu> listByGroup();
	
	/**
	 * List Menu By Author
	 * 
	 * @author songduanlei@gmail.com
	 * @param null
	 * @return List Menus
	 */
	public List<Menu> listByAuthor();
	
	/**
	 * List Menu By Author
	 * 
	 * @author songduanlei@gmail.com
	 * @param null
	 * @return List Menus
	 */
	public List<Menu> findAll();
	
}
